#include "capturefactory.h"

#ifdef Q_OS_WIN
#include "dccapture.h"
#endif
#ifdef Q_OS_MAC
#include <stdio.h>
#endif
#ifdef Q_OS_LINUX
#include "xcbcapture.h"
#endif

ScreenCapture *CaptureFactory::fromWinId(int id)
{
    ScreenCapture *cap = nullptr;
#ifdef Q_OS_WIN
    cap = new DcCapture(0);
#endif
#ifdef Q_OS_MAC
    cap = nullptr;
#endif
#ifdef Q_OS_LINUX
    cap = new XcbCapture(id, nullptr);
#endif
    return cap;
}
